package com.mz.entity.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class ProductImgItem {

    @NotNull(message = "url不能为空")
    private String url;
    @NotNull(message = "sourceType不能为空")
    private Integer sourceType;
    private Integer type;

    public ProductImgItem(){

    }

    public ProductImgItem( String url, Integer type, Integer sourceType  ){
        this.url = url;
        this.type = type;
        this.sourceType = sourceType;
    }

}
